Skip to content

Conversation

brichet
Copy link
Collaborator

@brichet brichet commented Oct 25, 2024

This PR adds a toolbar widget to display the connected user on the current chat.

Peek 2024-10-25 16-01

As can be seen in the gif above, displaying all users can take up to 15 seconds (the delay between two user status updates).

It needs to wait for:

Copy link
Contributor

Binder 👈 Launch a Binder on branch brichet/jupyter-chat/chat_users

Comment on lines +210 to +219
getMetadata(key: string): IMetadata | undefined {
return this._metadata.get(key);
}

setMetadata(key: string, value: PartialJSONValue) {
this.transact(() => {
this._metadata.set(key, value);
});
}

Copy link
Collaborator Author

@brichet brichet May 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason why this change has been added in this PR is for a possible usage in jupyter-ai:

  • the personnas from jupyter-ai could be displayed in this toolbar as regular collaborator, with a custom item that allows disabling it
  • disabling a personna should be saved in the metadata for persistence

Even if we do not add the feature described above, adding a way to get/set metadata from a frontend extension may still be useful. But it can be moved to another PR if it make more sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

1 participant